package ysq.xyg.base.util;

/**
 * @author yu sheng qiang
 * @create 2017-03-22 16:43
 **/
public final class BaseConstant {
    /**
     * 常用状态
     */
    public static String CODE_AUTOLOGIN_Y = "1";//自动登录
    public static String CODE_AUTOLOGIN_N = "2";//非自动登录
    public static String COOKIE_LOGINNAME = "COOKIE_LOGINNAME";//保存到COOKIE中登录名信息
    public static String COOKIE_PASSWORD = "COOKIE_PASSWORD";//保存到COOKIE中登录密码信息
    public static String SESSION_CURRENT_USER = "SESSION_CURRENT_USER";//保存到Session中信息
    //微信oauth2.0跳转类型
    public static final String WX_STATE_ONE = "1"; // 首页
    public static final String WX_STATE_TWO = "2"; // 品牌页面
    public static final String WX_STATE_THREE = "3"; // 商品页面
    //Oauth状态标识符
    public static final String OAUTH_BASE = "1";
    public static final String OAUTH_USERINFO = "2";
    //最小会员id
    public static final int MEMBER_MIN_DEFAULT_ID = 30000;
    /**
     * 时间格式
     */
    /**
     * 年格式
     */
    public final static String DATE_YEAR = "yyyy";
    /**
     * 月格式
     */
    public final static String DATE_MONTH = "MM";
    /**
     * 日格式
     */
    public final static String DATE_DAY = "dd";
    /**
     * 日期格式
     */
    public final static String DATE_PATTERN = "yyyy-MM-dd";

    /**
     * 年月格式
     */
    public final static String DATE_YEARMONTH = "yyyy-MM";

    /**
     * 时间格式
     */
    public final static String TIME_PATTERN = "HH:mm:ss";
    /**
     * 时格式
     */
    public final static String DATE_HOUR = "HH";
    /**
     * 时间格式
     */
    public final static String HM_PATTERN = "HH:mm";

    /**
     * 日期格式1
     */
    public final static String DATE_TIME_PATTERN_1 = "yyyyMMddHHmmss";
    /**
     * 日期格式1
     */
    public final static String DATE_TIME_PATTERN_2 = "yyyyMMddHHmmssSSSS";

    /**
     * 日期时间格式
     */
    public final static String DATE_TIME_PATTERN = DATE_PATTERN + " " + TIME_PATTERN;

    //操作状态
    public static int SUCCESS = 0;
    public static int FAIL = 1;
    public static String DO_SUCCESS = "操作成功！";
    public static String DO_FAIL = "操作失败！";
    public static String DO_FAIL_FILE = "文件格式不匹配！";

    //分页默认值
    public static final int PAGE_NUM = 1;
    public static final int PAGE_SIZE = 15;

    //附件类型:1、图片类型，2、文档类型,3、execl类型
    public static String FILE_TYPE_IMAGE = "1";
    public static String FILE_TYPE_DOC = "2";
    public static String FILE_TYPE_EXECL = "3";
    //菜单最小值
    public static String MENU_CODE_MIN = "10";
    /**
     * 字典码内容
     */
    //审核状态:1、待审核，2、审核通过,3、审核未通过

    public static final String BASE_CHECK_STATUS = "base_check_status";
    public static final String BASE_CHECK_STATUS_DSH = "1";
    public static final String BASE_CHECK_STATUS_YSH = "2";
    public static final String BASE_CHECK_STATUS_WTG = "3";
    //性别:1、男，2、女
    public static final String BASE_SEX = "base_sex";
    public static final String BASE_SEX_MEN = "1";
    public static final String BASE_SEX_WOMEN = "2";
    //有效状态:1、有效，2、无效
    public static final String BASE_STATUS = "base_status";
    public static final String BASE_STATUS_NORMAL = "1";
    public static final String BASE_STATUS_DISABLE = "2";


    //删除标识：1、正常，2、已删除
    public static final String BASE_REMOVE_TAG = "base_remove_tag";
    public static final String BASE_REMOVE_TAG_NORMAL = "1";
    public static final String BASE_REMOVE_TAG_DELETE = "2";

    //操作类别:1、其它，2、后台用户，3、手机端用户
    public static final String SYS_OPERATOR_TYPE = "sys_operator_type";
    public static final String SYS_OPERATOR_TYPE_OTHER = "1";
    public static final String SYS_OPERATOR_TYPE_PC = "2";
    public static final String SYS_OPERATOR_TYPE_PHONE = "3";

    //操作状态:1、未处理，2、已处理
    public static final String BASE_OPERATOR_STATUS = "base_operator_status";
    public static final String BASE_OPERATOR_STATUS_WCL = "1";
    public static final String BASE_OPERATOR_STATUS_YCL = "2";
    //操作状态：1、操作成功，2、操作失败
    public static final String SYS_OPERATOR_STATUS = "operator_status";
    public static final String SYS_OPERATOR_STATUS_SUCCESS = "1";
    public static final String SYS_OPERATOR_STATUS_FAIL = "2";

    //业务操作类型：1、新增，2、修改，3、删除，4、查询，5、授权，6、导出，7、导入，8、强退，9、生成代码，10、清空，11，其它
    public static final String SYS_BUSINESS_TYPE = "sys_business_type";
    public static final String SYS_BUSINESS_TYPE_INSERT = "1";
    public static final String SYS_BUSINESS_TYPE_UPDATE = "2";
    public static final String SYS_BUSINESS_TYPE_DELETE = "3";
    public static final String SYS_BUSINESS_TYPE_GET = "4";
    public static final String SYS_BUSINESS_TYPE_GRANT = "5";
    public static final String SYS_BUSINESS_TYPE_EXPORT = "6";
    public static final String SYS_BUSINESS_TYPE_IMPORT = "7";
    public static final String SYS_BUSINESS_TYPE_FORCE = "8";
    public static final String SYS_BUSINESS_TYPE_GENCODE = "9";
    public static final String SYS_BUSINESS_TYPE_CLEAN = "10";
    public static final String SYS_BUSINESS_TYPE_OTHER = "11";

    //附件类型：1、项目下保存，2、硬盘下保存，3、千牛云保存
    public static final String SYS_FILE_SAVE_TYPE = "sys_file_save_type";
    public static final String SYS_FILE_SAVE_TYPE_LOCALHOST = "1";
    public static final String SYS_FILE_SAVE_TYPE_DISK = "2";
    public static final String SYS_FILE_SAVE_TYPE_QLY = "3";

    //菜单类型：1、目录，2、菜单，3、按钮
    public static final String SYS_MENU_TYPE = "sys_menu_type";
    public static final String SYS_MENU_TYPE_DIC = "1";
    public static final String SYS_MENU_TYPE_MENU = "2";
    public static final String SYS_MENU_TYPE_BTN = "3";

    //菜单级别:1、一级，2、二级，3、三级
    public static final String SYS_MENU_GRADE = "sys_menu_grade";
    public static final String SYS_MENU_GRADE_ONE = "1";
    public static final String SYS_MENU_GRADE_TWO = "2";
    public static final String SYS_MENU_GRADE_THREE = "3";

    //使用类型：1、PC端，2、移动端
    public static final String base_use_type = "base_use_type";
    public static final String base_use_type_pc = "1";
    public static final String base_use_type_moblie = "2";


    //是否展示:1、展示，2、不展示
    public static final String base_show_type = "base_show_type";
    public static final String base_show_type_zs = "1";
    public static final String base_show_type_bzs = "2";

    //使用状态:1、未使用，2、已使用
    public static final String BASE_USE_STATUS = "base_use_status";
    public static final String BASE_USE_STATUS_WSY = "1";
    public static final String BASE_USE_STATUS_YSY = "2";

    /**
     * 微信端是否登录
     */
    public static final String WEB_MEMBER_LOGIN_NO = "1";
    public static final String WEB_MEMBER_LOGIN_YES = "2";

    /**
     * 1=首页动态，2=动态文章
     * web_article_type
     */
    public static final String WEB_ARTICLE_TYPE_INDEX = "1";
    public static final String WEB_ARTICLE_TYPE_ARTICLE = "2";

    /**
     * 身份类型：1、独立经纪人，2、门店经纪人
     */
    public static final String WEB_MEMBER_CARD_TYPE_ONE = "1";
    public static final String WEB_MEMBER_CARD_TYPE_TWO = "2";

    /**
     * 1、报备成功，2、客户到访，3、认筹确认，4、无效客户
     */
    public static final String HOST_REPORT_STATE_ONE = "1";
    public static final String HOST_REPORT_STATE_TWO = "2";
    public static final String HOST_REPORT_STATE_THREE = "3";
    public static final String HOST_REPORT_STATE_FOUR = "4";

    public enum SchedulerStatus {
        /**
         * 正常
         */
        NORMAL("0"),
        /**
         * 暂停
         */
        PAUSE("1");

        private String value;

        private SchedulerStatus(String value)
        {
            this.value = value;
        }

        public String getValue()
        {
            return value;
        }
    }
}
